/*
Theme Name: Tam Sao Magazine
Author: Tien Nguyen
Author URI: http://bloggeritems.com/
Version: 4.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentytwelve
*/
/*Reset*/
*{max-width:100%;line-height:1.5em}
body{background: #f0f0f0;min-width:240px;margin:0;font-family:Arial, Helvetica, sans-serif;font-size:14px;overflow-x: hidden;width: 100%;}
a{text-decoration:none;color:#C00}
a:hover{text-decoration:underline;color:#A00}
.clear{clear:both}
.hide{display:none}

/*Main navi*/
#main {
    background: #C00;
    text-align:center;
    border-bottom:1px solid #D00;
}
#main a {
    display: inline-block;
    color: white;
    margin: 0.3em;
    padding: 0.5em;
    -webkit-border-radius: 4px;  -moz-border-radius: 4px;  border-radius: 4px;
}
#main a:hover {
    background: #A00;
    text-decoration: none;    
}
#main a:active,
#main a.selected {
    background: #600;
}

/*Sub navi*/

#sub {
    background:#333;
    text-align:center;
    border-top: 1px solid black;
    border-bottom: 1px solid black;
}
#sub a {
    display:inline-block;
    -webkit-border-radius: 4px;  -moz-border-radius: 4px;  border-radius: 4px;
    margin: 10px 0 10px 0;
    color: white;
    padding: 5px 13px;
}
#sub .selected {
	background: black;
	color: #AAA;
}
#sub a:active {
	background: black!important;
	color: #C00;
}
#sub a:hover {
	background: #C00;
	text-decoration: none;
}

/*Breakcrumb*/
.breakcrumb {
    text-align: center;
    padding: 20px 0;
}
.breakcrumb * {
    display: inline-block;
    font-size: 20px;
    padding: 0 10px;
}


/*Banner*/
.banner {
    overflow: hidden;
    height: 300px;
    width: 100%;
}
.banner .overlay {
    background: black;
    width: 100%;
    height: 300px;
    filter: alpha(opacity=60);  opacity: 0.6;
    margin: -300px 0 0 0;
}
.banner .bg {
    width: 160%;
    height: 300px;
    max-width: 200%;
    overflow: hidden;
    position: relative;
}
.banner .bg img {
    display: block;
    float: left;
	max-height: 300px;
}

/*Common Layout*/

/*brand*/
.brand {
    width: 320px;
    overflow: hidden;
    margin: -280px auto 0 auto;
    position: relative;
    height: 280px;
}
.brand .logo {
    text-align: center;
}
.brand .description {
    background: #C00;
    text-align: center;
    color: white;
    padding: 0.5em;
    -webkit-border-radius: 20px;  
    -moz-border-radius: 20px;  
    border-radius: 20px;
}
#searchform {
    -webkit-border-radius: 4px;  -moz-border-radius: 4px;  border-radius: 4px;
    background: white;
    margin: 30px 0 0 0;
    padding: 5px 0;
    height: 45px;
    display: block;
}
#searchsubmit {
    padding: 0.5em;
    font-size: 16px;
    display: block;
    float: left;
    height: 44px;
    width: 88px;
    text-align: center;
}
#searchform .field {
    border: none;
    padding: 1em;
    display: block;
    width: 200px;
    float: left;
}

/*Index UI*/
.hot-items {
    font-size: 18px;
    text-transform: uppercase;
    border-left: 1em solid #C00;
    padding: 0 0 0 4px;
    margin-top: 2em;
}
.home #content,
.archive #content {
    background: white;
    padding: 10px;
    margin: 0 0 3em 0;
    border-bottom: 1px solid #CCC;
}
.home .post,
.archive .post {
    width: 130px;
    margin: 10px;
    float: left;
    height: 210px;
    overflow: hidden;
}
.home h3.title,
.archive  h3.title {
    font-size: 14px;
    margin: 0;
}
.home .post .meta,
.archive .post .meta {
    font-size: 13px;
    color: #999;
    font-style: italic;
}
#primary {
    margin: auto;
	
}
.cate-items a.name {
    font-size: 14px;
    text-transform: uppercase;
    color: #999;
}
.cate-items {
    font-weight: normal;
    border-left: 3px solid #9c0;
    padding: 0 0 0 5px;
    margin: 1em 0 0.5em 0;
}
.cate-items .arrow {
    padding: 0 4px;
    margin: 0 15px 0 10px;
    background: #ccc;
    font-size: 2px;
    line-height: 0;
}
.cate-items a.more {
    font-size: 12px;
    font-weight: bold;
    background: #C00;
    color: white;
    display: inline-block;
    padding: 0 1em;
    -webkit-border-radius: 20px;  
    -moz-border-radius: 20px;  
    border-radius: 20px;
}
.archive .title {
    font-size: 14px;
    margin: 0;
}
.archive .info {
    font-size: 12px;
    color: #999;
    margin: 3px 0 0 0;
    line-height: 1.5em;
}
.loading {
    width: 100%;
    padding: 1em 0 1em 0;
    float: left;
    text-align: center;
    background: #c00;
    color: white;
    font-size: 30px;
}
.no-post {
    background: #CCC;
	width: 100%;
    padding: 1em 0 1em 0;
    text-align: center;
    color: white;
    font-size: 30px;
}
.top:hover {
color: white;
}
.top {
display: none;
position: fixed;
bottom: 0;
right: 0;
padding: 20px 10px 10px 20px;
background: #C00;
color: white;
font-size: 15px;
-webkit-border-top-left-radius: 100px;
-moz-border-radius-topleft: 100px;
border-top-left-radius: 100px;

}

/*Single UI*/
.single #primary {
    width: 800px!important;
}
.single .post {
    display: block;
    clear: both;
    width: auto;
    height: auto;
	font-size: 16px;
    font-family: Times;
}
.single #content {
    padding: 5%;
    background: white;
    border: 1px solid #CCC;
}
.single .post .title {
    font-size: 35px;
    color: #C00;
    font-weight: normal;
    margin: 0 0 0.5em 0;
}
.single .post img {
    margin: 1em auto 0.3em auto;
    display: block;
	height:auto;    
}
.single .post .body {
    font-size: 20px;
    text-align:justify;
}

.single .post .body .hide {
    display: none;
}
.single .post .body .Lead {
    font-size: 20px;
}
.single .post .body object {
    margin: 1em 0;
    display: block;
}
.single table, .single table tbody, .single table tr, .single table td {
    display: block;
    width: 100%;
    text-align:center;
    font-size: 18px;
}
.single .post .body .true-author em {
    margin: 0 0 0 0.5em
}

.single .post .body h2 {
    font-size: 20px!important;
}
.single .post .body .true-author {
    font-style: italic;
    text-align: right;
}
.single .post .body .img-caption {
    text-align: center;
    margin: -10px 0 2em 0;
}
.single .logged-in-as {
    display: none;
}
.single .apps {
    background: white;
    margin: 2em 0;
    padding: 5%;
}
.single .addthis_toolbox > a {
    float: left;
    margin: 0 1em 0 0;
    display: block;
}
.single .addthis_toolbox {
    width: 280px;
    margin: auto;
}
.single .addthis_button_facebook_like {
	width:45px;
}
.single .footer-navi {
    text-align: center;
    margin: 1em 0 0 0;
}
.single .footer-navi a {
    font-size: 22px;
    margin: 0 10px;
}


/*Related*/
.related-post {
    padding: 5%;
    margin: 2em 0;
    background: white;
}
.related-post h2 {
    font-size: 30px;
    font-weight: normal;
    margin: 0 0 0.3em 0;
}
.related-post .thumb {
    width: 100px;
    height: auto;
    float: left;
    margin: 0.2em 1em 0 0;
}
.related-post .item {
    float: left;
    width: 46%;
    margin: 2% 2% 2% 0;
}
.related-post .item h3 {
    font-size: 18px;
    margin: 0;
}



/*Comments*/
#comments {
    background: white;
    padding: 5%;
    margin: 0 0 3em 0;
}
#commentform p{
margin:0
}
#commentform label{
display:none;
}
#comments-title {
    font-size: 30px;
    font-weight: normal;
}
#commentform .required {
    display: none;
}

#commentform #author {
    width: 99%;
    margin:0;
    border:1px solid #ccc;
    -webkit-border-top-left-radius: 4px;
    -webkit-border-top-right-radius: 4px;
    -moz-border-radius-topleft: 4px;
    -moz-border-radius-topright: 4px;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    padding:3px;
    font-size:20px;
}


#commentform #email {
    width: 99%;
    border:none;
    margin:0;
    border-right:1px solid #ccc;
    border-left:1px solid #ccc;
    padding:3px;
    font-size:20px;
}

#commentform #url {
    width: 99%;
    margin:0;
    border:1px solid #ccc;
    border-bottom:none;
    padding:3px;
    font-size:20px;

}
#commentform #comment {
    margin: 0;
    border: 1px solid #ccc;
    width: 99%;
    padding: 3px;
}
#commentform .form-allowed-tags {
    display:none;
}
.comment-notes {
    display: none;
}
#commentform #submit {
    border: none;
    background: #C00;
    cursor: pointer;
    color: white;
    font-size: 20px;
    padding: 5px 10px;
}
#commentform .form-submit {
    text-align: center;
}

#comments-title {
    margin: 0 0 0.5em 0;
}
.commentlist li {
    list-style: none;
}
.commentlist {
    padding: 0;
}
.comment .avatar {
    float: left;
    margin: 0 0.5em 0 0;
    -webkit-border-radius: 4px;  -moz-border-radius: 4px;  border-radius: 4px;
}
.comment .author {
    font-size: 1em;
    margin: 0 0.3em 0 0;
    float: left;
}
.comment .content {
    padding: 0 0 0 58px;
    font-size: 20px;
    line-height: 1.3em;
}
.comment .children .content {
    padding: 0 0 0 42px;
}

.comment .content p {
    margin: 0 0 0.2em 0;
}
.comment .app {
    font-size: 14px;
    margin: -8px 0 0 0;
    float: left;
    font-style: italic;
    color: #CCC;
}
.comment-reply-link {
    margin: 0 0 0 5px;
}
.comment-awaiting-moderation {
    margin: 0 0 0.5em 0;
    display: block;
}
li > .comment {
    margin: 10px 0;
    padding: 10px 0;
    border-top: 1px solid #EEE;
}
.comment .children {
    padding: 0 0 0 58px;
}

/*Online apps*/
.online {
    text-align: center;
    color: #999;
    margin: 1em 0;
}
.online span {
    font-size: 40px;
}

/*Page Navi*/
#wp_page_numbers {
    float: left;
    width: 100%;
}
#wp_page_numbers ul {
    margin: 0;
    padding: 0;
}
#wp_page_numbers li {
    list-style: none;
    float: left;
    margin: 0 0 10px 10px;
}
#wp_page_numbers li a {
    background: #C00;
    padding: 5px 10px;
    color: white;
    -webkit-border-radius: 100px;  
    -moz-border-radius: 100px;  
    border-radius: 100px;
    font-weight: bold;
}
#wp_page_numbers li a:hover {
    background: #F00;
}
#wp_page_numbers li.page_info {
    font-weight: bold;
}
#wp_page_numbers li.active_page a {
    background: #CCC;
}



/*specific news style*/
.kenh14-vn div {
    margin: 0 0 1em 0!important;
}
.kenh14-vn .pSource, .kenh14-vn .pzSource {
font-style: italic;
color: gray;
text-align: right;
margin-bottom: 0px;
}
.kenh14-vn .pCaption {
font-size: 12px!important;
color: #666;
text-align: center;
margin-top: 0;
background: #F6F6F6;
padding: 5px;
margin-bottom: 5px;
}
.kenh14-vn .pQuestion {
font-style:italic;
}
.kenh14-vn .pSubTitle {
font-weight: bold;
}
.kenh14-vn .pHead {
    font-size: 20px;
}
.kienthuc-net-vn div {
    margin: 0 0 1em 0;
}
.kienthuc-net-vn .gallery-title {
    text-align: center;
}
.news-zing-vn .pHead {
    font-size: 20px;
}

.news-zing-vn .pSource {
    font-style: italic;
    text-align: right;
}

.news-zing-vn .pAuthor {
    font-weight: bold;
    text-align: right;
}

.news-zing-vn .pSubTitle {
    font-weight: bold;
    font-size: 20px;
}
.eva-vn .nguontin {
    display: none;
}


/*Responsive design*/
.home #primary, .archive #primary{width:1520px;}

@media (max-width: 1519px) {
	.home #primary, .archive #primary{width:1370px}
}
@media (max-width: 1369px) {
	.home #primary, .archive #primary{width:1220px}
}
@media (max-width: 1219px) {
	.home #primary, .archive #primary{width:1070px}
}
@media (max-width: 1069px) {
	.home #primary, .archive #primary{width:920px}
}
@media (max-width: 919px) {
	.home #primary, .archive #primary{width:770px}
}
@media (max-width: 769px) {
	.home #primary, .archive #primary{width:620px}
}
@media (max-width: 619px) {
	.home #primary, .archive #primary{width:470px}
}
@media (max-width: 469px) {
	.home #primary, .archive #primary{width:320px}
	.thumb {
		width: 72px;
		height: auto;
		float: left;
		margin: 0 10px 0 0;
	}
	.home .post, .archive .post {
		width: 100%;
		height: auto;
	}
	.home h3.title, .archive h3.title {
		margin: 0 20px 0 0;
	
	}
	.tail .thumb {
		display: none;
	}
	.tail .meta {
		display: none;
	}
	.tail h3.title {
		font-size: 13px;
		margin: 0;
		padding: 10px;
	}
	.post.tail {
		margin: 0;
	}
	.tail.grey .title {
		background: #f0f0f0;
	}
	.tail h3.title a {
		color: black;
	}
	.meta {display: none}
	.single .post .title {
		font-size: 24px!important;
		line-height: 1.3em!important;
	}
}
@media (max-width: 319px) {
	.home #primary, .archive #primary{width:100%}
	#searchform .field {
		width: 52%;
	}
}

